package com.atguigu.common.exception;

public enum     BizCodeExceptionEnum {
    //业务异常枚举
    UNKNOW_EXCEPTION(10500,"系统内部错误"),
    VAILD_EXCEPTION(10001,"参数校验失败");
     /*状态码*/
    private int code;
    /*异常信息*/
    private String message;

    BizCodeExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
